package com.example.chact.entity;

public class Msg {
    public static final int TYPE_RECEIVED = 0; // 表示收到了一条消息

    public static final int TYPE_SENT = 1; // 表示发送了一条消息

    private String content;

    private int type;

    /**
     * 构造方法和 get/set
     *
     * @param content 消息内容
     * @param type    类型
     */
    public Msg(String content, int type) {
        this.content = content;
        this.type = type;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }
}
